package com.rou.im.framework.boot.starter.configurer;

import com.rou.im.framework.boot.starter.AbstractConfigurer;
import com.rou.im.framework.boot.starter.builder.ProcessorStackBuilder;
import com.rou.im.framework.core.processorstack.processor.ExceptionProcessor;
import com.rou.im.framework.core.processorstack.processor.RequestContextPersistenceProcessor;

/**
 * <p></p>
 *
 * @author GaoShuangWen
 * @since 2020-05-26 23:21
 */
public class RequestContextPersistenceProcessorConfigurer extends AbstractConfigurer<ProcessorStackBuilder> {
    @Override
    public void init(ProcessorStackBuilder builder) throws Exception {

    }

    @Override
    public void configure(ProcessorStackBuilder builder) throws Exception {
        builder.addProcessor(postProcess(new RequestContextPersistenceProcessor()));
    }
}
